package com.copsoftware.comun.delegates;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.copsoftware.comun.services.GeometryService;
import com.copsoftware.reportes.geografico.beans.BeanDelitoFlt;

public class GeometryDelegate {
	
	protected final Log logger = LogFactory.getLog(getClass());
	
	public void guardarGeometry(String cadenaPuntos) throws Exception
	{
		GeometryService geometryService = new GeometryService();
		geometryService.guardarGeometry(cadenaPuntos);
	}

	public List buscarZona() throws Exception {
		GeometryService geometryService = new GeometryService();
		return geometryService.buscarZona();		
	}

	public List buscarDelitos() {
		// TODO Auto-generated method stub
		return null;
	}

	public List buscarDelitos(BeanDelitoFlt beanDelitoFlt) throws Exception {
		GeometryService geometryService = new GeometryService();		
		return geometryService.buscarDelitos(beanDelitoFlt);
	}

	public String obtenerGLatLng(Integer idDenuncia) throws Exception {
		GeometryService geometryService = new GeometryService();		
		return geometryService.obtenerGLatLng(idDenuncia);
	}

	public String[] obtenerGPolygonCalle(String deCalle) throws Exception {
		GeometryService geometryService = new GeometryService();		
		return geometryService.obtenerGPolygonCalle(deCalle);
	}
}
